<?php
// Register Custom Post Type
function fw_custom_post_type() {

	$labels = array(
		'name'                => _x( 'Events', 'Post Type General Name', THEME_NAME ),
		'singular_name'       => _x( 'Event', 'Post Type Singular Name', THEME_NAME ),
		'menu_name'           => __( 'Event', THEME_NAME ),
		'parent_item_colon'   => __( 'Parent Event:', THEME_NAME ),
		'all_items'           => __( 'All Events', THEME_NAME ),
		'view_item'           => __( 'View Event', THEME_NAME ),
		'add_new_item'        => __( 'Add New Event', THEME_NAME ),
		'add_new'             => __( 'New Event', THEME_NAME ),
		'edit_item'           => __( 'Edit Event', THEME_NAME ),
		'update_item'         => __( 'Update Event', THEME_NAME ),
		'search_items'        => __( 'Search Events', THEME_NAME ),
		'not_found'           => __( 'No Events found', THEME_NAME ),
		'not_found_in_trash'  => __( 'No Events found in Trash', THEME_NAME ),
	);
	$rewrite = array(
		'slug'                => 'event',
		'with_front'          => true,
		'pages'               => true,
		'feeds'               => true,
	);
	$args = array(
		'label'               => __( 'Event', THEME_NAME ),
		'description'         => __( 'Event information pages', THEME_NAME ),
		'labels'              => $labels,
		'supports'            => array( 'post_thumbnails' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'menu_icon'           => '',
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'rewrite'             => $rewrite,
		'capability_type'     => 'page',
	);
	register_post_type( 'event', $args );
	
	
	$labels = array(
		'name'                => _x( 'Team', 'Post Type General Name', THEME_NAME ),
		'singular_name'       => _x( 'Team', 'Post Type Singular Name', THEME_NAME ),
		'menu_name'           => __( 'Team', THEME_NAME ),
		'parent_item_colon'   => __( 'Parent Member:', THEME_NAME ),
		'all_items'           => __( 'All Members', THEME_NAME ),
		'view_item'           => __( 'View Member', THEME_NAME ),
		'add_new_item'        => __( 'Add New Member', THEME_NAME ),
		'add_new'             => __( 'New Member', THEME_NAME ),
		'edit_item'           => __( 'Edit Member', THEME_NAME ),
		'update_item'         => __( 'Update Member', THEME_NAME ),
		'search_items'        => __( 'Search Team', THEME_NAME ),
		'not_found'           => __( 'No Team found', THEME_NAME ),
		'not_found_in_trash'  => __( 'No Team found in Trash', THEME_NAME ),
	);
	$rewrite = array(
		'slug'                => 'team',
		'with_front'          => true,
		'pages'               => true,
		'feeds'               => true,
	);
	$args = array(
		'label'               => __( 'Team', THEME_NAME ),
		'description'         => __( 'Team information pages', THEME_NAME ),
		'labels'              => $labels,
		'supports'            => array('post_thumbnails' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'menu_icon'           => '',
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'rewrite'             => $rewrite,
		'capability_type'     => 'page',
	);
	register_post_type( 'team', $args );
	
	$labels = array(
		'name'                => _x( 'Services', 'Post Type General Name', THEME_NAME ),
		'singular_name'       => _x( 'Service', 'Post Type Singular Name', THEME_NAME ),
		'menu_name'           => __( 'Service', THEME_NAME ),
		'parent_item_colon'   => __( 'Parent Service:', THEME_NAME ),
		'all_items'           => __( 'All Services', THEME_NAME ),
		'view_item'           => __( 'View Service', THEME_NAME ),
		'add_new_item'        => __( 'Add New Service', THEME_NAME ),
		'add_new'             => __( 'New Service', THEME_NAME ),
		'edit_item'           => __( 'Edit Service', THEME_NAME ),
		'update_item'         => __( 'Update Service', THEME_NAME ),
		'search_items'        => __( 'Search Services', THEME_NAME ),
		'not_found'           => __( 'No Service found', THEME_NAME ),
		'not_found_in_trash'  => __( 'No Service found in Trash', THEME_NAME ),
	);
	$rewrite = array(
		'slug'                => 'service',
		'with_front'          => true,
		'pages'               => true,
		'feeds'               => true,
	);
	$args = array(
		'label'               => __( 'Service', THEME_NAME ),
		'description'         => __( 'Service information pages', THEME_NAME ),
		'labels'              => $labels,
		'supports'            => array('post_thumbnails' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'menu_icon'           => '',
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'rewrite'             => $rewrite,
		'capability_type'     => 'page',
	);
	register_post_type( 'service', $args );
	

}

// Hook into the 'init' action
add_action( 'init', 'fw_custom_post_type', 0 );